package com.li.shop.service;

import com.li.shop.domain.News;
import com.li.shop.utils.SearchNewsRequest;
import com.li.shop.utils.SearchNewsResponse;

import java.util.List;

public interface NewsService {
    List<News> listNews();
    SearchNewsResponse listNews(Integer pageSize, Integer pageNum, String keyword);
    int deleteNewsByPrimaryKey(String id);
    News findNewsByPrimaryKey(String id);
    List<News> searchNewss(SearchNewsRequest request);
    int saveNews(News news);
}
